package com.hansming.bss.modules.sfc.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.hansming.bss.common.persistence.DataEntity;

/**
 * 搜房车提供的服务Entity
 * @author Hansming
 * @version 2017-09-16
 */
public class CarServe extends DataEntity<CarServe>{

	/**
	 * serialVersionUID做什么还不是不清楚
	 */
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String caritem;								//服务名称	
	private	String caritemtype;							//服务所属种类	
	private BigDecimal caritemprice;						//服务对应的价格0就为0
	private String	detail;										//服务说明
	private String mandatory;								//是否为必选（1 为必选 0为非必选  
	private	String fordaytype;								//天数计数方式（1为按时间长短记天数，0为按自然天数计天数,2为1次性计费）
	
	public final static String selected_flag = "1";   		//选中的默认值
	public final static String not_selected_flag = "0"; 	//不是的默认值
	
	public final static String FORNATURE = "0";
	public final static String FORTIME = "1";
	public final static String FORONE = "2";
	
	
	
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Length(min=0, max=255)
	public String getCaritem() {
		return caritem;
	}
	
	public void setCaritem(String caritem) {
		this.caritem = caritem;
	}
	
	@Length(min=0, max=255)
	public String getCaritemtype() {
		return caritemtype;
	}

	public void setCaritemtype(String caritemtype) {
		this.caritemtype = caritemtype;
	}

	public BigDecimal getCaritemprice() {
		return caritemprice;
	}

	public void setCaritemprice(BigDecimal caritemprice) {
		this.caritemprice = caritemprice;
	}
		
	

	public String getMandatory() {
		return mandatory;
	}

	public void setMandatory(String mandatory) {
		this.mandatory = mandatory;
	}



	public String getFordaytype() {
		return fordaytype;
	}

	public void setFordaytype(String fordaytype) {
		this.fordaytype = fordaytype;
	}

	public CarServe(){
		super();
		this.fordaytype = selected_flag;
		this.mandatory = selected_flag;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	



	
	
	
	
}
